<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">

<f:view contentType="text/html">

	<h:head>
		<meta http-equiv="Content-Type"
			content="text/html; charset=ISO-8859-1" />
		<title>CONTINAUTOS</title>

		<h:outputStylesheet library="css" name="stylesheet.css"  />
		
	</h:head>
	<h:body>
		<h:form>
			<div id="background_gradient">
			<div id="contendorLogin">
				<div id="contenidoLogin">
					<div align="center">
						<div id="logoIngreso"></div>
					</div>
					<div id="contCarga">

						
						<div align="center">

							<h:panelGrid columns="1" cellpadding="1" cellspacing="0"
								border="0">
								<h:panelGroup>
								<div align="center" >
								    
								    <h:panelGrid columns="1" cellspacing="0" border="0">
								      <h:panelGroup>
											<h:outputText value="#{loginBean.mensajeLogin}" id="mensajeLogin" styleClass="txtMsgRojo"/>
										</h:panelGroup>
								    </h:panelGrid>
								    
									<h:panelGrid columns="2" cellspacing="0" border="0">
										
										<h:panelGroup>
											<div class="user" style="text-align: left; width:70px">Usuario:</div>
										</h:panelGroup>
										<h:panelGroup>
											<h:inputText id="idUsuario" value="#{loginBean.usuario}"
												styleClass="boxSimpleLogin" required="true"
												requiredMessage="#{messages.msg_seguridad_campoRequerido_usuario}" />
										
										</h:panelGroup>
										<h:panelGroup></h:panelGroup>
										<h:panelGroup><rich:messages for="idUsuario" ajaxRendered="true" /></h:panelGroup>
									<h:panelGroup>
											<div class="pass" style="text-align: left;width:70px">Clave:</div>
										</h:panelGroup>
										<h:panelGroup>
											<h:inputSecret id="idClave" value="#{loginBean.clave}"
												styleClass="boxSimpleLogin" required="true"
												requiredMessage="#{messages.msg_seguridad_campoRequerido_clave}" />
										</h:panelGroup>
										<h:panelGroup></h:panelGroup>
										<h:panelGroup><rich:messages for="idClave" ajaxRendered="true" /></h:panelGroup>

                                        
                                        <h:panelGroup>
											<div class="pass" style="text-align: left;width:70px">Concesionario:</div>
										</h:panelGroup>
										<h:panelGroup>
											<h:selectOneMenu styleClass="combo"
								value="#{loginBean.idConcesionario}">
								<f:selectItems value="#{cacheParametrosBean.concesionariosList}" />
							</h:selectOneMenu>
										</h:panelGroup>
										<h:panelGroup></h:panelGroup>

									</h:panelGrid>
									</div>
								</h:panelGroup>
								
								<h:panelGroup>
									<div align="center">
										<h:panelGrid columns="2">
											<h:panelGroup>
												<a4j:commandButton action="#{loginBean.login}"
													value="Ingresar" styleClass="botonLogin" render="mensajeLogin"/>
											</h:panelGroup>
										</h:panelGrid>
									</div>

								</h:panelGroup>


							</h:panelGrid>

						</div>

					</div>

				</div>

			</div>
			</div>
		</h:form>
	</h:body>
</f:view>
</html>